package com.siwei.mes.service;

import com.github.pagehelper.PageInfo;
import com.siwei.mes.common.query.PageQuery;
import com.siwei.mes.entity.ExperimentSampleSmokeLog;

import java.util.List;

/**
 * 试验台账抽样信息日志记录表(ExperimentSampleSmokeLog)表服务接口
 *
 * @author linzi
 * @since 2024-01-01 13:54:02
 */
public interface ExperimentSampleSmokeLogService {

    /**
     * 新增
     *
     * @param entity
     * @return
     */
    Long create(ExperimentSampleSmokeLog entity);

    /**
     * 修改
     *
     * @param entity
     */
    void update(ExperimentSampleSmokeLog entity);

    /**
     * 删除
     *
     * @param id
     */
    void delete(Long id);

    /**
     * 获取所有分组  分页
     *
     * @param query
     * @return
     */
    PageInfo<ExperimentSampleSmokeLog> getPage(PageQuery<ExperimentSampleSmokeLog, ExperimentSampleSmokeLog> query);

    /**
     * 根据id查询
     *
     * @param id
     * @return
     */
    ExperimentSampleSmokeLog loadById(Long id);

    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<ExperimentSampleSmokeLog> getAll(ExperimentSampleSmokeLog entity);
}
